<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <title>充值</title>
    <link rel="stylesheet" href="__HOMECSS__/style.css">
    <script src="__HOMEJS__/jquery-1.7.2.min.js"></script>
    <style>
        .withdraw{
            background-color: #f6f6f6 !important;
            position: absolute;
            width: 100%;
            left: 0px;
            min-height: 100%;
            font-size: 0.8rem;
        }
        .withdraw .cardList{
            width: 78%;
            background-color: #fff;
            border-radius: 5px;
            margin: 12px auto;
            padding: 30px 6%;
        }
        .withdraw .cardList .btn{
            width: 100%;
            max-width: 300px;
            margin: 12px auto;
            line-height: 2.6rem;
            border-radius: 5px;
            color: #fff;
            background-color: #e01222;
            text-align: center;
        }
        .withdraw .cardList p {
            margin: 0px auto;
            text-align: left;
        }
        .withdraw .cardList .withdrawBox {
            position: relative;
            margin: 35px auto 5px auto;
        }
        .withdraw .cardList .withdrawBox span {
            position: absolute;
            left: 10px;
            font-size: 1.5rem;
            bottom: 18px;
        }
        .withdraw .cardList .withdrawBox .withdrawinput {
            width: 100%;
            margin: auto;
            outline: none;
            border-width: 0px;
            border-bottom: 1px solid #dcdcdc;
            text-indent: 2rem;
            line-height: 2.5rem;
            max-width: 300px;
            margin-bottom: 10px;
            font-size: 1.5rem;
            background-color: #fff;
        }
        .withdraw .cardList .cardRow p {
            line-height: 26px;
        }
        .withdraw .cardList .cardRow .leftcard {
            width: 27%;
            text-align: left;
            float: left;
        }
        .withdraw .cardList .cardRow .rightcard {
            width: 70%;
            float: right;
        }
        .withdraw .cardList .cardRow .rightcard .card {
            color: #ff2d4b;
        }
        .withdraw .cardList .cardRow .rightcard .sign {
            color: #888;
        }
    </style>
</head>
<body style="background: #eef1f5;">

<div class="withdraw">
    <div class="cardList">
        <div class="cardRow">
            <p class="leftcard">充值余额</p>

            <div class="clear"></div>
        </div>

        <div class="withdrawBox">

            <span>¥ </span>
            <input class="withdrawinput" type="text" name='money' id='money' placeholder="">
        </div>
        <div class="btn" onclick="withdraw()">确定</div>
    </div>

</div>


</body>
<script src="__PUBLIC__/layer/layer.js"></script>
<script>

    //提现
    function withdraw(){
        var integral = $('#integral').val();
        $.ajax({
            type:"post",
            url:"{:Url('Wallet/wallet_withdraw')}",
            dataType:'json',
            data:{"integral":integral},
            success:function(result){
                if(result.status==1){
                    layer.msg(result.info,{icon:1,time:1500},function() {
                       window.location.reload();
                    });
                }else{
                    layer.msg(result.info,{icon:2,time:1500},function() {
                       
                    });
                }
            }
        });
    }
</script>
</html>